package com.sgcc.isc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.sgcc.common.core.annotation.Excel;
import com.sgcc.common.core.web.domain.TreeEntity;

import java.util.Date;

/**
 * 部门映射对象 sys_district
 * 
 * @author sgcc
 * @date 2021-03-17
 */
public class SysDistrict extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String districtId;

    /** 名称 */
    @Excel(name = "名称")
    private String districtName;

    private String orgId;
    
    private String orgName;
    
    private String type;

    private Date createTime;

    private Date updateTime;
    public void setDistrictId(String districtId) 
    {
        this.districtId = districtId;
    }

    public String getDistrictId() 
    {
        return districtId;
    }
    public void setDistrictName(String districtName) 
    {
        this.districtName = districtName;
    }

    public String getDistrictName() 
    {
        return districtName;
    }
    
    public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("districtId", getDistrictId())
            .append("districtName", getDistrictName())
            .append("parentId", getParentId())
            .append("orgId", getOrgId())
            .append("orgName", getOrgName())
            .append("type", getType())
            .toString();
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
